/*
 * Niiuzu
 * Copyright (C) 2011  Thierry Nowak
 * 
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.niiuzu.client.screen.authentification.lost.password;

import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.user.client.ui.HasValue;
import com.mvp4g.client.view.LazyView;
import com.niiuzu.client.util.view.PopupView;

/**
 * Interface de la vue du mot de passe perdu.
 */
public interface LostPasswordView extends LazyView, PopupView {

	/**
	 * Place le focus sur le champ de l'adresse email.
	 */
	void focusEmailAddressField();

	/**
	 * Champ de saisie de l'adresse email.
	 */
	HasValue<String> getEmailAddressField();

	/**
	 * Champ de saisie de la seconde adresse email (confirmation).
	 */
	HasValue<String> getEmailAddressConfirmationField();

	/**
	 * Gestionnaire des comportements d'un clic sur le bouton fermer.
	 */
	HasClickHandlers getCloseButtonHasClickHandlers();

	/**
	 * Gestionnaire des comportements d'un clic sur le bouton annuler.
	 */
	HasClickHandlers getCancelHasClickHandlers();

	/**
	 * Gestionnaire des comportements d'un clic sur le bouton valider.
	 */
	HasClickHandlers getValidationHasClickHandlers();

	/**
	 * Affichage d'un message de confirmation.
	 * 
	 * @param message
	 *            message de confirmation.
	 */
	void showConfirmationMessage(String message);

}
